#ifndef CONFIG_H
#define CONFIG_H

#endif // CONFIG_H

#define SAVE_PATH
#define DEBUG 0


////ICDAR2003
//#define AUTO_THRESHOLD 1
//#define MAX_LETTER_SIZE 300
//#define MIN_LETTER_SIZE 10
//#define VARIANCE_SWT 3 // variance/mean <2
//#define BIG_SW 2  // SW - mean < BIG_SW
//#define GRAPHIC_VALUE_SWTMAP 255  //
//#define MIN_GRAPHIC_WIDTH 50 //
//#define MIN_GRAPHIC_HEIGHT 50 //
//#define MAX_SW_RATIO_CCSIZE 15 // sqrt((pow(itr->width,2) +  pow(itr->height,2)))/maxStrokeWidth should be smaller than 15
//#define MIN_SW_RATIO_CCSIZE 3
//#define MEAN_SW_RATIO_CCSIZE 6.5
//#define PCOUNT_MAXST_RATIO 5
//#define DIFF_MEAN_INTENSITY 30 // difference meanintesity between 2  letters to be grouped
//#define CHAINE_SIZE 3 //number of letters in a qualified groups, (3 not ok :OF, A ...)
//#define PADDING 0 //number of letters in a qualified groups, (3 not ok :OF, A ...)
//#define HEIGHT_RATIO_PAIRS 2 //number of letters in a qualified groups, (3 not ok :OF, A ...)
//#define INNER_CC 1 //number of letters in a qualified groups, (3 not ok :OF, A ...)
//#define DENSITY_RATIO 0.7
//#define WIDTH_HEIGHT_RATIO 2.7
//#define REJECT_RATIO 4
//#define MIN_GROUP_WIDTH 40
//#define MAX_STROKWIDTH_POIDS 2.5 //number of letters in a qualified groups, (3 not ok :OF, A ...)
//#define WIDTH_HEIGHT_RATIO_GROUP 13 //max(width,height)/min(width,height)


//VIDEO ULR //Original of ROS
//CHU Y //VanNN DEBUG
#define OVERLAP_TEXTGRAP_REJECT_RATIO 0.4 //Run1 = 0.5
#define THIS_IS_WINDOW 0
#define TEXT_PERCENTAGE_SIMILARITY 0.6
#define GRAPHICS_PERCENTAGE_SIMILARITY 0.7
#define MAX_LETTER_SIZE 600
#define MIN_LETTER_SIZE 6
#define VARIANCE_SWT 2 // variance/mean <2
#define BIG_SW 2  // SW - mean < BIG_SW
#define GRAPHIC_VALUE_SWTMAP 255  //
#define MIN_GRAPHIC_WIDTH 20 //
#define MIN_GRAPHIC_HEIGHT 20//
#define PCOUNT_MAXST_RATIO 5
#define MAX_SW_RATIO_CCSIZE 10 // sqrt((pow(itr->width,2) +  pow(itr->height,2)))/maxStrokeWidth should be smaller than 15
#define MIN_SW_RATIO_CCSIZE 5
#define MEAN_SW_RATIO_CCSIZE 6.5
#define DIFF_MEAN_INTENSITY 30 // difference meanintesity between 2  letters to be grouped
#define CHAINE_SIZE 3 //number of letters in a qualified groups, (3 not ok :OF, A ...)
#define PADDING 5 //number of letters in a qualified groups, (3 not ok :OF, A ...)
#define PADDING_LETTERS 5
#define HEIGHT_RATIO_PAIRS 2 //number of letters in a qualified groups, (3 not ok :OF, A ...)
#define INNER_CC 2 //number of letters in a qualified groups, (3 not ok :OF, A ...)
#define DENSITY_RATIO 0.7
#define WIDTH_HEIGHT_RATIO 2.5
#define REJECT_RATIO 4
#define MIN_GROUP_WIDTH 12
#define MAX_STROKWIDTH_POIDS 1 //number of letters in a qualified groups, (3 not ok :OF, A ...)
#define WIDTH_HEIGHT_RATIO_GROUP 20 //max(width,height)/min(width,height)
#define MIN_GRAPHIC_SIZE 50 //
#define TEXT_GRAPHICS_OVERLAP_FINE 0.8 //

#define MIN_WORLD_SIZE 1
#define KEEP_A_LETTER 1
#define INCREMENT 1
#define FILTER_SLIDES_SVM 1
#define AUTO_THRESHOLD 1
#define BG_SUBTRACTION 1 //Run1 = 0

